adTempus API
|
Gets the object with the specified OID or ordinal
HRESULT Object(VARIANT index, [out, retval] IADTObject ** pVal);
Object(VARIANT index, [out, retval] IADTObject * pVal);
Sub Object(index As VARIANT, pVal As [out, retval] IADTObject *)
Parameters |
Description |
[in] VARIANT index |
The ordinal or OID of the item to retrieve. The collection is 0-based: valid ordinals range from 0 to Count-1. |
[out, retval] IADTObject ** pVal |
The requested item, or NULL if the method fails |
If the ordinal is invalid or no object with the specified OID is found the method fails with error ADT_E_NOT_FOUND.
Each collection that derives from this interface also has an Item property, which is equivalent to Object except that it returns the interface contained by the collection. The Object property can be used to retrieve an object from a generic collection without knowing what kind of objects the collection contains.
adTempus API Reference version 3.0.0.0, revised 10/30/2008
|